org.jboss.system.server.profileservice.repository.clustered.sync
Class NoOpRepositorySynchronizationWriteAction<T extends SynchronizationActionContext>

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.clustered.sync.AbstractSynchronizationAction<T>
      extended by org.jboss.system.server.profileservice.repository.clustered.sync.NoOpSynchronizationAction<T>
          extended by org.jboss.system.server.profileservice.repository.clustered.sync.NoOpRepositorySynchronizationWriteAction<T>
All Implemented Interfaces:
SynchronizationAction<T>, SynchronizationWriteAction<T>, TwoPhaseCommitAction<T>

public class NoOpRepositorySynchronizationWriteAction<T extends SynchronizationActionContext>
extends NoOpSynchronizationAction<T>
implements SynchronizationWriteAction<T>

A SynchronizationWriteAction that throws the bytes on the floor.

Version:
$Revision: $
Author:
Brian Stansberry

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.system.server.profileservice.repository.clustered.sync.AbstractSynchronizationAction
AbstractSynchronizationAction.State
 
Constructor Summary
NoOpRepositorySynchronizationWriteAction(T context, ContentModification modification)
          Create a new NoOpRepositorySynchronizationWriteAction.
 
Method Summary
 void writeBytes(ByteChunk bytes)
          Write the given bytes to the item referenced by this action.
 
Methods inherited from class org.jboss.system.server.profileservice.repository.clustered.sync.NoOpSynchronizationAction
doCancel, doCommit, doComplete, doPrepare, doRollbackFromCancelled, doRollbackFromComplete, doRollbackFromOpen, doRollbackFromPrepared, doRollbackFromRollbackOnly
 
Methods inherited from class org.jboss.system.server.profileservice.repository.clustered.sync.AbstractSynchronizationAction
cancel, commit, complete, getContext, getMarkedRemovedItem, getRepositoryContentModification, getState, isCancelled, isComplete, prepare, rollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.server.profileservice.repository.clustered.sync.SynchronizationAction
cancel, complete, getContext, getRepositoryContentModification, isCancelled, isComplete
 

Constructor Detail

NoOpRepositorySynchronizationWriteAction

public NoOpRepositorySynchronizationWriteAction(T context,
                                                ContentModification modification)
Create a new NoOpRepositorySynchronizationWriteAction.

Parameters:
synchronizationId -
modification -
Method Detail

writeBytes

public void writeBytes(ByteChunk bytes)
Description copied from interface: SynchronizationWriteAction
Write the given bytes to the item referenced by this action.

Specified by:
writeBytes in interface SynchronizationWriteAction<T extends SynchronizationActionContext>
Parameters:
bytes - the bytes. Cannot be null. The byte count must be greater than -1.


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.