예제 #1
0
  public LocalChannel() {
    incoming = new ActualChannel<>(true);
    outgoing = new ActualChannel<>(false);

    incoming.other = outgoing;
    outgoing.other = incoming;
  }
예제 #2
0
 @Override
 public void send(T message) {
   other.fireMessageReceived(new MessageEvent<T>(other, this, message));
 }