Top Fields Constructors Methods
org.glassfish.grizzly.http2.utils

public Class ChunkedCompletionHandler

extends Object
implements CompletionHandler<WriteResult<K, L>>
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.CompletionHandler
Known Direct Subclasses
org.glassfish.grizzly.http2.DefaultOutputSink.FlushCompletionHandler
Imports
java.util.logging.Logger, org.glassfish.grizzly.CompletionHandler, .WriteResult

Author
oleksiys

Field Summary

Modifier and TypeField and Description
private int
private boolean
private static final Logger
private final CompletionHandler<WriteResult<K, L>>
private long

Constructor Summary

AccessConstructor and Description
public
ChunkedCompletionHandler(final CompletionHandler<WriteResult<K, L>>
- can be null
parentCompletionHandler
)

Method Summary

Modifier and TypeMethod and Description
public void
cancelled()

Implements org.glassfish.grizzly.CompletionHandler.cancelled.

The operation was cancelled.

public void
completed(final WriteResult<K, L> result)

Implements org.glassfish.grizzly.CompletionHandler.completed.

The operation was completed.

private boolean
done()

protected void
done0()

This method does nothing but can be overriden to implement some action executed before the parent completition handler is executed.

public void
failed(Throwable throwable)

Implements org.glassfish.grizzly.CompletionHandler.failed.

The operation was failed.

public void
public void
updated(final WriteResult<K, L> result)

Implements org.glassfish.grizzly.CompletionHandler.updated.

The callback method may be called, when there is some progress in operation execution, but it is still not completed

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

chunksCounterback to summary
private int chunksCounter
isDoneback to summary
private boolean isDone
LOGback to summary
private static final Logger LOG
parentCompletionHandlerback to summary
private final CompletionHandler<WriteResult<K, L>> parentCompletionHandler
writtenSizeback to summary
private long writtenSize

Constructor Detail

ChunkedCompletionHandlerback to summary
public ChunkedCompletionHandler(final CompletionHandler<WriteResult<K, L>> parentCompletionHandler)
Parameters
parentCompletionHandler:CompletionHandler<WriteResult<K, L>>

- can be null

Method Detail

cancelledback to summary
public void cancelled()

Implements org.glassfish.grizzly.CompletionHandler.cancelled.

Doc from org.glassfish.grizzly.CompletionHandler.cancelled.

The operation was cancelled.

Annotations
@Override
completedback to summary
public void completed(final WriteResult<K, L> result)

Implements org.glassfish.grizzly.CompletionHandler.completed.

Doc from org.glassfish.grizzly.CompletionHandler.completed.

The operation was completed.

Annotations
@Override
doneback to summary
private boolean done()
done0back to summary
protected void done0()

This method does nothing but can be overriden to implement some action executed before the parent completition handler is executed.

failedback to summary
public void failed(Throwable throwable)

Implements org.glassfish.grizzly.CompletionHandler.failed.

Doc from org.glassfish.grizzly.CompletionHandler.failed.

The operation was failed.

Annotations
@Override
incChunksback to summary
public void incChunks()
updatedback to summary
public void updated(final WriteResult<K, L> result)

Implements org.glassfish.grizzly.CompletionHandler.updated.

Doc from org.glassfish.grizzly.CompletionHandler.updated.

The callback method may be called, when there is some progress in operation execution, but it is still not completed

Annotations
@Override