Example #1
0
 public static void delayedCopy(
     final StreamingRequest message,
     final MutableBufferedRequest copy,
     int max,
     final DelayedCopyObserver observer) {
   copy.setTarget(message.getTarget());
   copy.setSsl(message.isSsl());
   delayedCopy(
       (StreamingMessage) message,
       (MutableBufferedMessage) copy,
       max,
       new DelayedCopyObserver() {
         @Override
         public void copyCompleted(boolean overflow, int size) {
           copy.setTime(message.getTime());
           observer.copyCompleted(overflow, size);
         }
       });
 }
Example #2
0
 public static void stream(BufferedRequest request, StreamingRequest stream) {
   stream.setTarget(request.getTarget());
   stream.setSsl(request.isSsl());
   stream((BufferedMessage) request, stream);
 }
Example #3
0
 public static void buffer(StreamingRequest request, MutableBufferedRequest buff, int max)
     throws IOException, SizeLimitExceededException {
   buff.setTarget(request.getTarget());
   buff.setSsl(request.isSsl());
   buffer((StreamingMessage) request, buff, max);
 }