public LocalChannel() { incoming = new ActualChannel<>(true); outgoing = new ActualChannel<>(false); incoming.other = outgoing; outgoing.other = incoming; }
@Override public void send(T message) { other.fireMessageReceived(new MessageEvent<T>(other, this, message)); }