Created
January 15, 2014 21:46
-
-
Save GLitchfield/8445363 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BarchartMarketplaceReplay extends BarchartMarketplace { | |
public BarchartMarketplaceReplay(final int socketAddress) { | |
super("", ""); | |
maker = DDF_Marketplace.newInstance(new DummySubHandler()); | |
} | |
public void handleMessage(final DDF_BaseMessage message) { | |
if (message instanceof DDF_MarketBase) { | |
final DDF_MarketBase marketMessage = (DDF_MarketBase) message; | |
maker.make(marketMessage); | |
} | |
} | |
public DDF_MessageListener msgListener() { | |
return msgListener; | |
} | |
public DDF_Marketplace maker() { | |
return maker; | |
} | |
private class DummySubHandler implements SubscriptionHandler { | |
@Override | |
public Future<Boolean> subscribe(Sub subscription) { | |
return null; | |
} | |
@Override | |
public Future<Boolean> subscribe(Set<Sub> subscriptions) { | |
return null; | |
} | |
@Override | |
public Future<Boolean> unsubscribe(Sub subscription) { | |
return null; | |
} | |
@Override | |
public Future<Boolean> unsubscribe(Set<Sub> subscriptions) { | |
return null; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment