Package org.osgi.service.log.stream
Interface LogStreamProvider
-
@ProviderType public interface LogStreamProviderLogStreamProvider service for creating aPushStreamofLogEntryobjects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLogStreamProvider.OptionsCreation options for thePushStreamofLogEntryobjects.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PushStream<LogEntry>createStream(LogStreamProvider.Options... options)Create aPushStreamofLogEntryobjects.
-
-
-
Method Detail
-
createStream
PushStream<LogEntry> createStream(LogStreamProvider.Options... options)
Create aPushStreamofLogEntryobjects.The returned PushStream must:
- Be buffered with a buffer large enough to contain the history, if included.
- Have the
QueuePolicyOption.DISCARD_OLDESTqueue 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
PushStreamofLogEntryobjects.
-
-