com.basho.riak.client.cap
Class UnresolvedConflictException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.basho.riak.client.cap.UnresolvedConflictException
All Implemented Interfaces:
Serializable

public class UnresolvedConflictException
extends RuntimeException

Thrown by Retrier.attempt(java.util.concurrent.Callable) when it finally fails. Holds the Collection of siblings so they can be presented for further resolution attempts.

Author:
russell
See Also:
Serialized Form

Constructor Summary
UnresolvedConflictException(String message, Collection<? extends Object> siblings)
          For when a collection of siblings cannot be whittled down to one.
UnresolvedConflictException(Throwable cause, String message, Collection<? extends Object> siblings)
          For when a collection of siblings cannot be whittled down to one.
 
Method Summary
 Collection<? extends Object> getSiblings()
          Get the siblings that could not be resolved.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnresolvedConflictException

public UnresolvedConflictException(Throwable cause,
                                   String message,
                                   Collection<? extends Object> siblings)
For when a collection of siblings cannot be whittled down to one.

Parameters:
cause - the exception that broke the camels back
message - a String message
siblings - the collection of siblings

UnresolvedConflictException

public UnresolvedConflictException(String message,
                                   Collection<? extends Object> siblings)
For when a collection of siblings cannot be whittled down to one.

Parameters:
message - a String message
siblings - the collection of siblings
Method Detail

getSiblings

public Collection<? extends Object> getSiblings()
Get the siblings that could not be resolved.

Returns:
the siblings


Copyright © 2012. All Rights Reserved.