Package org.serviceconnector.api

Examples of org.serviceconnector.api.SCRemovedMessage


        break;
      case APPEND:
        replyToClient = new SCAppendMessage();
        break;
      case REMOVE:
        replyToClient = new SCRemovedMessage();
        break;
      default:
        replyToClient = new SCPublishMessage();
      }
      replyToClient.setData(reply.getBody());
View Full Code Here


        break;
      case APPEND:
        replyToClient = new SCAppendMessage();
        break;
      case REMOVE:
        replyToClient = new SCRemovedMessage();
        break;
      }
      replyToClient.setData(reply.getBody());
      replyToClient.setDataLength(reply.getBodyLength());
      replyToClient.setCompressed(reply.getHeaderFlag(SCMPHeaderAttributeKey.COMPRESSION));
View Full Code Here

      }
    }

    // publish a remove
    public void publish1Remove(SCMessage request, int operationTimeoutMillis) {
      SCRemovedMessage removeMessage = new SCRemovedMessage();
      removeMessage.setCacheId((String) request.getData());
      removeMessage.setMask(TestConstants.maskSrv);
      try {
        this.publishSrv.publish(removeMessage);
      } catch (Exception e) {
        LOGGER.error("cannot publish", e);
      }
View Full Code Here

        pubMessage.setData("1" + largeString);
        this.publishSrv.publish(pubMessage);
        Thread.sleep(200);
        pubMessage.setData("2" + largeString);
        this.publishSrv.publish(pubMessage);
        SCRemovedMessage removeMessage = new SCRemovedMessage();
        removeMessage.setCacheId((String) request.getData());
        removeMessage.setMask(TestConstants.maskSrv);
        this.publishSrv.publish(removeMessage);
        TestPublishServer.testLogger.info("publish message large message");
      } catch (Exception e) {
        LOGGER.error("cannot publish", e);
      }
View Full Code Here

TOP

Related Classes of org.serviceconnector.api.SCRemovedMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.