Interface StoreLayout
-
- All Known Implementing Classes:
LegacyStoreLayout,LocalStoreLayout
public interface StoreLayoutAStoreLayoutdefines how store actions should be handled according to their type. It enforces an implementation for a minimal set of actions required by Discord4J, and enables the declaration of custom action types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ActionMappergetCustomActionMapper()Defines a mapping for custom action types.DataAccessorgetDataAccessor()Returns aDataAccessorthat defines action handlers for reading data from the store.GatewayDataUpdatergetGatewayDataUpdater()Returns aGatewayDataUpdaterthat defines action handlers for updates received from the Discord gateway.
-
-
-
Method Detail
-
getDataAccessor
DataAccessor getDataAccessor()
Returns aDataAccessorthat defines action handlers for reading data from the store.- Returns:
- a
DataAccessor
-
getGatewayDataUpdater
GatewayDataUpdater getGatewayDataUpdater()
Returns aGatewayDataUpdaterthat defines action handlers for updates received from the Discord gateway.- Returns:
- a
GatewayDataUpdater
-
getCustomActionMapper
default ActionMapper getCustomActionMapper()
Defines a mapping for custom action types. By default returns an emptyActionMapper, implementations may override this method to supply custom mappings.- Returns:
- an
ActionMapper
-
-