JNodeOS v1.1.5 API

edu.utah.janos.nodeos
Class CommQueuePusher

java.lang.Object
  |
  +--edu.utah.janosvm.sys.ListNode
        |
        +--edu.utah.janosvm.sys.Importable
              |
              +--edu.utah.janos.nodeos.CommQueuePusher

public final class CommQueuePusher
extends edu.utah.janosvm.sys.Importable

A handle for other flows to push elements onto a CommQueue.


Fields inherited from class edu.utah.janosvm.sys.ListNode
pred, succ
 
Constructor Summary
CommQueuePusher()
          Construct an empty pusher, it can be bound to a queue later.
CommQueuePusher(CommQueuePuller puller)
          Construct a handle that will push elements onto the queue managed by the puller.
CommQueuePusher(CommQueuePusher pusher)
           
 
Method Summary
 void bind(CommQueuePusher pusher)
          Bind this pusher to the CommQueue referred to by the argument.
 void enqueue(CommSpaceElement cse)
           
 void enqueue(CommSpaceElement[] cse)
           
 
Methods inherited from class edu.utah.janosvm.sys.Importable
clone, equals, pointsTo
 
Methods inherited from class edu.utah.janosvm.sys.ListNode
append, prepend, remove
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommQueuePusher

public CommQueuePusher()
Construct an empty pusher, it can be bound to a queue later.

CommQueuePusher

public CommQueuePusher(CommQueuePuller puller)
Construct a handle that will push elements onto the queue managed by the puller.
Parameters:
puller - The handle for the CommQueue we want to push elements onto.

CommQueuePusher

public CommQueuePusher(CommQueuePusher pusher)
Parameters:
pusher - The handle for the CommQueue we want to push elements onto.
Method Detail

bind

public void bind(CommQueuePusher pusher)
Bind this pusher to the CommQueue referred to by the argument.
Parameters:
pusher - The handle to the CommQueue we should bind ourselves too.

enqueue

public void enqueue(CommSpaceElement cse)
Parameters:
cse - The element to enqueue.

enqueue

public void enqueue(CommSpaceElement[] cse)
Parameters:
cse - The array of elements to atomically add to the queue.

JNodeOS v1.1.5 API

This documentation is Copyright (C) 1998-2001 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/