Skip to content

Instantly share code, notes, and snippets.

@GLitchfield
Created January 15, 2014 21:46
Show Gist options
  • Save GLitchfield/8445363 to your computer and use it in GitHub Desktop.
Save GLitchfield/8445363 to your computer and use it in GitHub Desktop.
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