[강운덕] [LUCYSUS-1744] FixedPool관련하여 이름변경이 안된곳이 있어 수정함.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-server/trunk@2470 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2013-10-08 08:12:22 +00:00
parent 1af41b0f0a
commit a050bcf08b
3 changed files with 4 additions and 4 deletions
@@ -5,7 +5,7 @@ import java.net.DatagramPacket;
/**
*
*/
public class DatagramPacketFactory implements FixedPoolFactory<DatagramPacket> {
public class DatagramPacketFactory implements ObjectPoolFactory<DatagramPacket> {
private static final int AcceptedSize = 65507;
@@ -10,9 +10,9 @@ public class ObjectPool<T> {
// 구지 blocking 할 필요가 없음. queue안에 충분한 양이 무조껀 있어야 됨. 없으면 뭔가 릭임.
private final Queue<T> queue = new ConcurrentLinkedQueue<T>();
private final FixedPoolFactory<T> factory;
private final ObjectPoolFactory<T> factory;
public ObjectPool(FixedPoolFactory<T> factory, int size) {
public ObjectPool(ObjectPoolFactory<T> factory, int size) {
if (factory == null) {
throw new NullPointerException("factory");
}
@@ -3,7 +3,7 @@ package com.nhn.pinpoint.collector.util;
/**
*
*/
public interface FixedPoolFactory<T> {
public interface ObjectPoolFactory<T> {
T create();
void beforeReturn(T t);