Examples of MessageStream


Examples of com.caucho.bam.stream.MessageStream

    Mailbox inboundMailbox = createInboundMailbox(sender.getActor(),
                                                  outboundBroker);
   
    inboundBroker.setMailbox(inboundMailbox);
   
    MessageStream outboundStream
      = new OutboundMessageStream(_linkFactory, inboundBroker);
   
    Mailbox outboundMailbox = createOutboundMailbox(outboundStream,
                                                    inboundBroker);
    outboundBroker.setMailbox(outboundMailbox);
View Full Code Here

Examples of com.caucho.bam.stream.MessageStream

   * Returns the current stream to the actor, throwing an exception if
   * it's unavailable
   */
  public MessageStream getActorStream()
  {
    MessageStream stream = _actorStream;

    if (stream != null)
      return stream;
    else
      throw new RemoteConnectionFailedException("connection has been closed");
View Full Code Here

Examples of com.caucho.bam.stream.MessageStream

  }
 
  @Override
  public MessageStream getOutboundStream()
  {
    MessageStream stream = _hmtpListener.getOutboundStream();

    return stream;
  }
View Full Code Here

Examples of com.caucho.bam.stream.MessageStream

    Mailbox mailbox;
   
    // queue
    if (threadMax > 0) {
      MessageStream actorStream = bamActor.getActor();
      mailbox = new MultiworkerMailbox(address, actorStream, this, threadMax);
      // bamActor.setActorStream(actorStream);
    }
    else {
      mailbox = new PassthroughMailbox(address, bamActor.getActor(), this);
View Full Code Here

Examples of com.caucho.bam.stream.MessageStream

    ActorHolder bamActor = actor;
    Mailbox mailbox = null;
    // queue
    if (threadMax > 0) {
      MessageStream actorStream = bamActor.getActor();
      mailbox = new MultiworkerMailbox(address, actorStream, this, threadMax);
      bamActor.setMailbox(mailbox);
    }

    addMailbox(mailbox);
View Full Code Here

Examples of groovyx.gpars.actor.impl.MessageStream

    public DataflowWriteChannel<T> leftShift(final DataflowReadChannel<T> ref) {
        return bindDFV(ref);
    }

    private DataflowWriteChannel<T> bindDFV(final DataflowReadChannel<T> ref) {
        ref.getValAsync(new MessageStream() {
            private static final long serialVersionUID = -458384302762038543L;

            @SuppressWarnings({"unchecked"})
            @Override
            public MessageStream send(final Object message) {
View Full Code Here

Examples of groovyx.gpars.actor.impl.MessageStream

    private static final long serialVersionUID = -3166182949181062129L;
    private final RemoteHost remoteHost;

    public RemoteDataflowExpression() {
        remoteHost = (RemoteHost) SerialContext.get();
        getValAsync(new MessageStream() {
            private static final long serialVersionUID = -8868544599311892034L;

            @SuppressWarnings({"unchecked"})
            @Override
            public MessageStream send(final Object message) {
View Full Code Here

Examples of groovyx.gpars.actor.impl.MessageStream

    @SuppressWarnings("unchecked")
    public final DataflowWriteChannel<T> leftShift(final DataflowReadChannel<T> ref) {
        final DataflowVariable<T> originalRef = retrieveForBind();
        hookWheneverBoundListeners(originalRef);

        ref.getValAsync(new MessageStream() {
            private static final long serialVersionUID = -4966523895011173569L;

            @Override
            public MessageStream send(final Object message) {
                originalRef.bind((T) message);
View Full Code Here

Examples of groovyx.gpars.actor.impl.MessageStream

    private static final long serialVersionUID = -420013188758006693L;
    private final RemoteHost remoteHost;

    public RemoteDataflowVariable(final RemoteHost host) {
        remoteHost = host;
        getValAsync(new MessageStream() {
            private static final long serialVersionUID = 7968302123667353660L;

            @SuppressWarnings({"unchecked"})
            @Override
            public MessageStream send(final Object message) {
View Full Code Here

Examples of groovyx.gpars.actor.impl.MessageStream

     * @return promise of {@link groovyx.gpars.dataflow.DataflowReadChannel}
     */
    public Promise<DataflowReadChannel> getReadChannel(String host, int port, String name) {
        DataflowVariable<RemoteDataflowBroadcast> broadcastPromise = getPromise(remoteBroadcasts, name, host, port, new RemoteDataflowBroadcastRequestMsg(this.getId(), name));
        final DataflowVariable<DataflowReadChannel> promise = new DataflowVariable<>();
        broadcastPromise.whenBound(new MessageStream() {
            @Override
            public MessageStream send(Object message) {
                promise.bind(((RemoteDataflowBroadcast) message).createReadChannel());
                return this;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.