public class NullChannel extends java.lang.Object implements PollableChannel
INDEFINITE_TIMEOUT
Constructor and Description |
---|
NullChannel() |
Modifier and Type | Method and Description |
---|---|
Message<?> |
receive() |
Message<?> |
receive(long timeout) |
boolean |
send(Message<?> message) |
boolean |
send(Message<?> message,
long timeout) |
public boolean send(Message<?> message)
send
in interface MessageChannel
public boolean send(Message<?> message, long timeout)
send
in interface MessageChannel
public Message<?> receive()
receive
in interface PollableChannel
public Message<?> receive(long timeout)
receive
in interface PollableChannel