// your's too), it just matters that you are able to end up with a collection of
// com.rackspacecloud.blueflood.types.Metric.
AsyncChain.withFunction(new DeserializeAndReleaseFunc(new ThreadPoolBuilder().withName("Packet Deserializer").build()))
// this this stage writes a single metrics to the database.
.withFunction(new SimpleMetricWriter(new ThreadPoolBuilder().withName("Database Writer").build()))
// this stage updates the context, which eventually gets push to the database.
.withFunction(new ContextUpdater(new ThreadPoolBuilder().withName("Context Updater").build(), context))
.build();