Package org.osgi.service.log.stream
Interface LogStreamProvider
@ProviderType
public interface LogStreamProvider
LogStreamProvider service for creating a
PushStream
of
LogEntry
objects.- "ThreadSafe"
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Creation options for thePushStream
ofLogEntry
objects. -
Method Summary
Modifier and TypeMethodDescriptioncreateStream
(LogStreamProvider.Options... options) Create aPushStream
ofLogEntry
objects.
-
Method Details
-
createStream
Create aPushStream
ofLogEntry
objects.The returned PushStream must:
- Be buffered with a buffer large enough to contain the history, if included.
- Have the
QueuePolicyOption.DISCARD_OLDEST
queue policy option. - Use a shared executor.
- Have a parallelism of one.
When this LogStreamProvider service is released by the obtaining bundle, this LogStreamProvider service must call
PushStream.close()
on the returned PushStream object if it has not already been closed.- Parameters:
options
- The options to use when creating the PushStream.- Returns:
- A
PushStream
ofLogEntry
objects.
-