public class ShellBoltMessageQueue extends Object implements Serializable
Constructor and Description |
---|
ShellBoltMessageQueue() |
ShellBoltMessageQueue(int boltMsgCapacity) |
Modifier and Type | Method and Description |
---|---|
Object |
poll(long timeout,
TimeUnit unit)
poll() is a core feature of ShellBoltMessageQueue.
|
void |
putBoltMsg(BoltMsg boltMsg)
put bolt message to its queue.
|
void |
putTaskIds(List<Integer> taskIds)
put list of task id to its queue.
|
public ShellBoltMessageQueue(int boltMsgCapacity)
public ShellBoltMessageQueue()
public void putTaskIds(List<Integer> taskIds)
taskIds
- task ids that received the tuplespublic void putBoltMsg(BoltMsg boltMsg) throws InterruptedException
boltMsg
- BoltMsg to pass to subprocessInterruptedException
public Object poll(long timeout, TimeUnit unit) throws InterruptedException
timeout
- how long to wait before giving up, in units of unitunit
- a TimeUnit determining how to interpret the timeout parameterList<Integer>
if task id is available, BoltMsg if task id is not available but bolt message is available, null if the
specified waiting time elapses before an element is available.InterruptedException
Copyright © 2023 The Apache Software Foundation. All rights reserved.