Package one.tranic.scorpio.api
Interface AdapterExtension
-
- All Implemented Interfaces:
public interface AdapterExtension
This interface represents an extension for adapters in the Scorpio API. Implementations of this interface must provide functionality for handling messages and managing the adapter's lifecycle.
-
-
Method Summary
Modifier and Type Method Description abstract String
getIdentifier()
Returns a unique identifier for this adapter extension. abstract Unit
handleMessage(Message message)
Handles a message received by the adapter. abstract Boolean
getStatus()
Retrieves the current status of the adapter. abstract Unit
shutdown()
Shuts down the adapter, releasing any resources and stopping operations. -
-
Method Detail
-
getIdentifier
abstract String getIdentifier()
Returns a unique identifier for this adapter extension.
- Returns:
the identifier as a String
-
handleMessage
abstract Unit handleMessage(Message message)
Handles a message received by the adapter.
- Parameters:
message
- the message to be processed
-
getStatus
abstract Boolean getStatus()
Retrieves the current status of the adapter.
- Returns:
true if the adapter is active, false otherwise
-
-
-
-