@Override public Observable<Void> call(MessageConnection serverConnection) { return sendExpectAckOnConnection(serverConnection, new InterestRegistration(newInterest)); } });
Interest<InstanceInfo> interest = ((InterestRegistration) message).toComposite(); switch (state.get()) { case Open:
Interest<InstanceInfo> interest = ((InterestRegistration) message).toComposite(); switch (state.get()) { case Idle:
@Override public Observable<Void> call(MessageConnection serverConnection) { return serverConnection.submitWithAck(new InterestRegistration(newInterest)) .doOnCompleted(new UpdateLocalInterest(newInterest)); } });