log.tracef("Message Received id(%h), correlationId(%d)", messageId, correlationId); final Common.MessageHandler mh = getHandlerRegistry().get(messageId); if (mh != null) { if (mh instanceof MessageHandler) { endReceiveLoop = ((MessageHandler) mh).endReceiveLoop(); getClientExecutorManager().execute(new Runnable() {
public void handle(DataInput input, int correlationId) { VersionedIoFuture<TypeExceptionHolder<T>> future = getClientRequestManager().getFuture(correlationId); if (future == null) { Unmarshaller unmarshaller = prepareForUnMarshalling(input); response.e = unmarshaller.readObject(Exception.class); } else {
public void handleError(Channel channel, IOException error) { getClientRequestManager().cancelAllRequests(error); }
@SuppressWarnings("unchecked") @Override protected T readValue(DataInput input) throws IOException { Unmarshaller unmarshaller = prepareForUnMarshalling(input); try { return ((T) unmarshaller.readObject()); } catch (ClassNotFoundException e) { throw new IOException(e); } catch (ClassCastException e) { throw new IOException(e); } }
public void handleEnd(Channel channel) { getClientRequestManager().cancelAllRequests(new IOException("Connection Ended")); }
@SuppressWarnings("unchecked") @Override protected T readValue(DataInput input) throws IOException { Unmarshaller unmarshaller = prepareForUnMarshalling(input); try { return ((T) unmarshaller.readObject()); } catch (ClassNotFoundException e) { throw new IOException(e); } catch (ClassCastException e) { throw new IOException(e); } }
log.tracef("Message Received id(%h), correlationId(%d)", messageId, correlationId); final Common.MessageHandler mh = getHandlerRegistry().get(messageId); if (mh != null) { if (mh instanceof MessageHandler) { endReceiveLoop = ((MessageHandler) mh).endReceiveLoop(); getClientExecutorManager().execute(new Runnable() {
public void handle(DataInput input, int correlationId) { VersionedIoFuture<TypeExceptionHolder<T>> future = getClientRequestManager().getFuture(correlationId); if (future == null) { Unmarshaller unmarshaller = prepareForUnMarshalling(input); response.e = unmarshaller.readObject(Exception.class); } else {
public void handleError(Channel channel, IOException error) { getClientRequestManager().cancelAllRequests(error); }
@SuppressWarnings("unchecked") @Override protected T readValue(DataInput input) throws IOException { Unmarshaller unmarshaller = prepareForUnMarshalling(input); try { return ((T) unmarshaller.readObject()); } catch (ClassNotFoundException e) { throw new IOException(e); } catch (ClassCastException e) { throw new IOException(e); } }
log.tracef("Message Received id(%h), correlationId(%d)", messageId, correlationId); final Common.MessageHandler mh = getHandlerRegistry().get(messageId); if (mh != null) { if (mh instanceof MessageHandler) { endReceiveLoop = ((MessageHandler) mh).endReceiveLoop(); getClientExecutorManager().execute(new Runnable() {
public void handle(DataInput input, int correlationId) { VersionedIoFuture<TypeExceptionHolder<T>> future = getClientRequestManager().getFuture(correlationId); if (future == null) { Unmarshaller unmarshaller = prepareForUnMarshalling(input); response.e = unmarshaller.readObject(Exception.class); } else {
public void handleEnd(Channel channel) { getClientRequestManager().cancelAllRequests(new IOException("Connection Ended")); }
public void handleError(Channel channel, IOException error) { getClientRequestManager().cancelAllRequests(error); }
public void handleEnd(Channel channel) { getClientRequestManager().cancelAllRequests(new IOException("Connection Ended")); }