T
- The type managed by the Records
.Flushable
, Iterable<T>
, Iterator<T>
, org.refcodes.component.Closable
, org.refcodes.component.CompositeComponent
, org.refcodes.component.Decomposeable
, org.refcodes.component.Destroyable
, org.refcodes.component.Flushable
, org.refcodes.component.Initializable
, org.refcodes.component.LifeCycleComponent
, org.refcodes.component.LinkComponent
, org.refcodes.component.Openable
, org.refcodes.component.Pausable
, org.refcodes.component.Resetable
, org.refcodes.component.Resumable
, org.refcodes.component.Startable
, org.refcodes.component.Stoppable
, org.refcodes.mixin.Disposable
, Records<T>
public class CompositeRecords<T> extends Object implements Records<T>, org.refcodes.component.CompositeComponent
Records
interface wrapping multiple
Records
instances. The CompositeRecords
makes use of a flavor
of the composite pattern.org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
org.refcodes.component.CompositeComponent.ExtendedCompositeComponent<CTX extends Object,CON extends Object>
org.refcodes.component.Decomposeable.DecomposeAutomaton
org.refcodes.component.Destroyable.DestroyAutomaton
org.refcodes.mixin.Disposable.Disposedable
org.refcodes.component.Flushable.FlushBuilder<B extends org.refcodes.component.Flushable.FlushBuilder<B>>
org.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializable
org.refcodes.component.LifeCycleComponent.LifeCycleAutomaton, org.refcodes.component.LifeCycleComponent.UncheckedLifeCycleComponent
org.refcodes.component.LinkComponent.LinkAutomaton, org.refcodes.component.LinkComponent.LinkComponentBuilder<B extends org.refcodes.component.LinkComponent.LinkComponentBuilder<B>>
org.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>
org.refcodes.component.Pausable.PauseAutomaton, org.refcodes.component.Pausable.PauseBuilder<B extends org.refcodes.component.Pausable.PauseBuilder<B>>, org.refcodes.component.Pausable.UncheckedPausable
org.refcodes.component.Resumable.ResumeAutomaton, org.refcodes.component.Resumable.ResumeBuilder<B extends org.refcodes.component.Resumable.ResumeBuilder<B>>, org.refcodes.component.Resumable.UncheckedResumable
Constructor | Description |
---|---|
CompositeRecords(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
org.refcodes.controlflow.InvocationStrategy aRecordServeStrategy,
Collection<Records<T>> aRecords) |
|
CompositeRecords(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy,
org.refcodes.controlflow.InvocationStrategy aRecordServeStrategy,
Records<T>... aRecords) |
|
CompositeRecords(org.refcodes.controlflow.InvocationStrategy aRecordServeStrategy,
Collection<Records<T>> aRecords) |
|
CompositeRecords(org.refcodes.controlflow.InvocationStrategy aRecordServeStrategy,
Records<T>... aRecords) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
void |
decompose() |
|
void |
destroy() |
|
void |
dispose() |
|
void |
flush() |
|
boolean |
hasNext() |
|
void |
initialize() |
|
Record<T> |
next() |
|
void |
open() |
|
void |
pause() |
|
void |
remove() |
|
void |
reset() |
|
void |
resume() |
|
void |
start() |
|
void |
stop() |
closeIn, closeQuietly, closeUnchecked
forEach, spliterator
forEachRemaining
@SafeVarargs public CompositeRecords(org.refcodes.controlflow.InvocationStrategy aRecordServeStrategy, Records<T>... aRecords)
@SafeVarargs public CompositeRecords(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, org.refcodes.controlflow.InvocationStrategy aRecordServeStrategy, Records<T>... aRecords)
aComponentExecutionStrategy
- The strategy on how to invoke the
state change requests (as of the CompositeComponent
)
defined methods) on the herein contained Component
instances. CAUTION: The strategy does not affect on how the
next()
methods of the herein contained instances are
invoked.aRecordServeStrategy
- The strategy to be used for serving the
Record
instances.aRecords
- The Records
instances from which to serve the
Record
instances.public CompositeRecords(org.refcodes.controlflow.InvocationStrategy aRecordServeStrategy, Collection<Records<T>> aRecords)
public CompositeRecords(org.refcodes.controlflow.ExecutionStrategy aComponentExecutionStrategy, org.refcodes.controlflow.InvocationStrategy aRecordServeStrategy, Collection<Records<T>> aRecords)
aComponentExecutionStrategy
- The strategy on how to invoke the
state change requests (as of the CompositeComponent
)
defined methods) on the herein contained Component
instances. CAUTION: The strategy does not affect on how the
next()
methods of the herein contained instances are
invoked.aRecordServeStrategy
- The strategy to be used for serving the
Record
instances.aRecords
- The Records
instances from which to serve the
Record
instances.public void initialize() throws org.refcodes.component.InitializeException
initialize
in interface org.refcodes.component.Initializable
org.refcodes.component.InitializeException
public void start() throws org.refcodes.component.StartException
start
in interface org.refcodes.component.Startable
org.refcodes.component.StartException
public void pause() throws org.refcodes.component.PauseException
pause
in interface org.refcodes.component.Pausable
org.refcodes.component.PauseException
public void resume() throws org.refcodes.component.ResumeException
resume
in interface org.refcodes.component.Resumable
org.refcodes.component.ResumeException
public void stop() throws org.refcodes.component.StopException
stop
in interface org.refcodes.component.Stoppable
org.refcodes.component.StopException
public void decompose()
decompose
in interface org.refcodes.component.Decomposeable
public void flush() throws IOException
flush
in interface Flushable
flush
in interface org.refcodes.component.Flushable
IOException
public void destroy()
destroy
in interface org.refcodes.component.Destroyable
public void reset()
reset
in interface org.refcodes.component.Resetable
public void open() throws IOException
open
in interface org.refcodes.component.Openable
IOException
public void close()
close
in interface org.refcodes.component.Closable
public void dispose()
dispose
in interface org.refcodes.mixin.Disposable
Copyright © 2021. All rights reserved.