Package krati.store.avro.client

Source Code of krati.store.avro.client.TransceiverFactoryLocal

/*
* Copyright (c) 2010-2012 LinkedIn, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

package krati.store.avro.client;

import org.apache.avro.ipc.LocalTransceiver;
import org.apache.avro.ipc.Transceiver;
import org.apache.avro.generic.GenericResponder;

/**
* TransceiverFactoryLocal
*
* @author jwu
* @since 10/03, 2011
*/
public class TransceiverFactoryLocal implements TransceiverFactory {
    private GenericResponder _responder;
    private Transceiver _transceiver;
   
    public TransceiverFactoryLocal(GenericResponder responder) {
        this._responder = responder;
        this._transceiver = new LocalTransceiver(responder);
    }
   
    public final GenericResponder getResponder() {
        return _responder;
    }
   
    @Override
    public final Transceiver newTransceiver() {
        return _transceiver;
    }
}
TOP

Related Classes of krati.store.avro.client.TransceiverFactoryLocal

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.