Interface NatsMessageListener
-
- All Known Implementing Classes:
CoreListener,StreamingListener
public interface NatsMessageListenerThe interface which defines behaviour of a core NATS or NATS streaming connection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcloseConnection()booleancreateConnection()voidinitializeConsumer(String sequenceName)
-
-
-
Method Detail
-
createConnection
boolean createConnection() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
initializeConsumer
void initializeConsumer(String sequenceName) throws InterruptedException, IOException, TimeoutException
-
closeConnection
void closeConnection()
-
-