-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DataProcessingLayerRepresents a single data processing layer. Incoming data will be processed byprocess(byte[])and its result will be returned.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanonDisable()Gets called onServer.close()to disable theDataProcessingLayer.default booleanonEnable()Gets called onServer.start()to initialize theDataProcessingLayer.byte[]process(byte[] data)Processes incoming data
-
-
-
Method Detail
-
process
byte[] process(byte[] data)
Processes incoming data- Parameters:
data- to process- Returns:
- processed data
-
onEnable
default boolean onEnable()
Gets called onServer.start()to initialize theDataProcessingLayer.- Returns:
- true on success
-
onDisable
default boolean onDisable()
Gets called onServer.close()to disable theDataProcessingLayer.- Returns:
- true on success
-
-