Package one.tranic.scorpio.api.impl
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.
- Since:
1.1.0
-
-
Method Summary
Modifier and Type Method Description abstract String
getIdentifier()
Returns a unique identifier for this adapter extension. abstract Unit
handleMessage(PlayerMessage message)
Handles a PlayerMessage received from the bridge plugin 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
- Since:
1.1.0
-
handleMessage
abstract Unit handleMessage(PlayerMessage message)
Handles a PlayerMessage received from the bridge plugin
- Parameters:
message
- the message to be processed- Since:
1.1.0
-
getStatus
abstract Boolean getStatus()
Retrieves the current status of the adapter.
- Returns:
true if the adapter is active, false otherwise
- Since:
1.1.0
-
-
-
-