125126127128129130131
listener.connectionDestroyed(getID()); } public HornetQBuffer createBuffer(final int size) { return new ChannelBufferWrapper(ChannelBuffers.dynamicBuffer(size)); }
114115116117118119120
62636465666768
@Override public void messageReceived(final ChannelHandlerContext ctx, final MessageEvent e) throws Exception { ChannelBuffer buffer = (ChannelBuffer)e.getMessage(); handler.bufferReceived(e.getChannel().getId(), new ChannelBufferWrapper(buffer)); }
67686970717273
4546474849505152535455
@Override protected Object decode(final ChannelHandlerContext ctx, final Channel channel, final ChannelBuffer in) throws Exception { int start = in.readerIndex(); int length = decoder.isReadyToHandle(new ChannelBufferWrapper(in)); in.readerIndex(start); if (length == -1) {
126127128129130131132
135136137138139140141
132133134135136137138
4849505152535455565758