Example usage for org.springframework.integration.codec.kryo PojoCodec PojoCodec

List of usage examples for org.springframework.integration.codec.kryo PojoCodec PojoCodec

Introduction

In this page you can find the example usage for org.springframework.integration.codec.kryo PojoCodec PojoCodec.

Prototype

public PojoCodec(List<KryoRegistrar> kryoRegistrars) 

Source Link

Document

Create an instance with zero to many KryoRegistrars.

Usage

From source file:org.springframework.xd.dirt.integration.bus.MessageBusSupportBenchmarkTests.java

@BeforeClass
@SuppressWarnings({ "unchecked", "rawtypes" })
public static void initMessageBus() {
    TestMessageBus messageBus = new TestMessageBus();
    messageBus.setCodec(new PojoCodec(new TupleKryoRegistrar()));
    messageBusSupport = messageBus;/*from   w w w. j a  va2 s  .c  o  m*/
}