org.fusesource.mqtt.client
Class ProxyCallback<T>

java.lang.Object
  extended by org.fusesource.mqtt.client.ProxyCallback<T>
All Implemented Interfaces:
Callback<T>

public class ProxyCallback<T>
extends java.lang.Object
implements Callback<T>

Function Result that carries one value.

Author:
Hiram Chirino

Field Summary
 Callback<T> next
           
 
Constructor Summary
ProxyCallback(Callback<T> next)
           
 
Method Summary
 void onFailure(java.lang.Throwable value)
           
 void onSuccess(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

public final Callback<T> next
Constructor Detail

ProxyCallback

public ProxyCallback(Callback<T> next)
Method Detail

onSuccess

public void onSuccess(T value)
Specified by:
onSuccess in interface Callback<T>

onFailure

public void onFailure(java.lang.Throwable value)
Specified by:
onFailure in interface Callback<T>


Copyright © 2010-2012 FuseSource, Corp.. All Rights Reserved.