public class SshMessageStore extends Object implements MessageStore
This class is the central storage location for channel messages; each channel has its own message store and the message pump delivers them here where they are stored in a lightweight linked list.
Modifier and Type | Field and Description |
---|---|
static int |
NO_MESSAGES |
Constructor and Description |
---|
SshMessageStore(SshMessageRouter manager,
SshAbstractChannel channel,
MessageObserver stickyMessageObserver) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Thread |
getBlockingThread() |
boolean |
hasBlockingThread() |
Message |
hasMessage(MessageObserver observer) |
boolean |
isClosed() |
SshMessage |
nextMessage(MessageObserver observer,
long timeout) |
public static final int NO_MESSAGES
public SshMessageStore(SshMessageRouter manager, SshAbstractChannel channel, MessageObserver stickyMessageObserver)
public SshMessage nextMessage(MessageObserver observer, long timeout) throws SshException, EOFException
messagefilter
- timeout
- IOException
InterruptedIOException
SshException
EOFException
public boolean isClosed()
public Message hasMessage(MessageObserver observer)
hasMessage
in interface MessageStore
public void close()
public boolean hasBlockingThread()
public Thread getBlockingThread()
Copyright © 2024. All rights reserved.