@Override public void settings(SettingsFrame frame, Callback callback) { control(null, callback, frame); }
@Override public void settings(SettingsFrame frame, Callback callback) { control(null, callback, frame); }
@Override public void ping(PingFrame frame, Callback callback) { if (frame.isReply()) callback.failed(new IllegalArgumentException()); else control(null, callback, frame); }
@Override public void ping(PingFrame frame, Callback callback) { if (frame.isReply()) callback.failed(new IllegalArgumentException()); else control(null, callback, frame); }
protected void reset(ResetFrame frame, Callback callback) { control(getStream(frame.getStreamId()), callback, frame); }
protected void reset(ResetFrame frame, Callback callback) { control(getStream(frame.getStreamId()), callback, frame); }
@Override public int priority(PriorityFrame frame, Callback callback) { int streamId = frame.getStreamId(); IStream stream = streams.get(streamId); if (stream == null) { streamId = localStreamIds.getAndAdd(2); frame = new PriorityFrame(streamId, frame.getParentStreamId(), frame.getWeight(), frame.isExclusive()); } control(stream, callback, frame); return streamId; }
@Override public int priority(PriorityFrame frame, Callback callback) { int streamId = frame.getStreamId(); IStream stream = streams.get(streamId); if (stream == null) { streamId = localStreamIds.getAndAdd(2); frame = new PriorityFrame(streamId, frame.getParentStreamId(), frame.getWeight(), frame.isExclusive()); } control(stream, callback, frame); return streamId; }
control(null, callback, closeFrame); return true;
control(null, callback, closeFrame); return true;
@Override public void onPing(PingFrame frame) { if (LOG.isDebugEnabled()) LOG.debug("Received {}", frame); if (frame.isReply()) { notifyPing(this, frame); } else { PingFrame reply = new PingFrame(frame.getPayload(), true); control(null, Callback.NOOP, reply); } }
control(null, Callback.NOOP, new DisconnectFrame()); break;
control(null, Callback.NOOP, new DisconnectFrame()); break;
@Override public void onPing(PingFrame frame) { if (LOG.isDebugEnabled()) LOG.debug("Received {}", frame); if (frame.isReply()) { notifyPing(this, frame); } else { PingFrame reply = new PingFrame(frame.getPayload(), true); control(null, Callback.NOOP, reply); } }