Package io.sbk.data
Interface DataType<T>
- All Known Implementing Classes:
ByteArray
,NioByteBuffer
,ProtoBufByteString
,SbkString
public interface DataType<T>
Interface for Data Type operations.
-
Field Summary
-
Method Summary
-
Field Details
-
TIME_HEADER_BYTES
static final int TIME_HEADER_BYTESTIME_HEADER_BYTES = 8;
.- See Also:
-
-
Method Details
-
allocate
allocate the data.- Parameters:
size
- size (number of bytes) of the data to create.- Returns:
- T return the data.
-
create
Create the data with payload content.- Parameters:
size
- size (number of bytes) of the data to create.- Returns:
- T return the data.
-
length
Get the size of the given data in terms of number of bytes.- Parameters:
data
- data- Returns:
- return size of the data.
-
setTime
Set the time for data.- Parameters:
data
- datatime
- time to set- Returns:
- T return the data.
-
getTime
Get the time of data.- Parameters:
data
- data- Returns:
- long return the time set by last
setTime(Object, long)
}.
-
getWriteReadMinSize
int getWriteReadMinSize()Get minimum Write and Read Data Size.- Returns:
- int minimum data size Write and Read.
-