mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-16 08:16:15 +10:00
[강운덕] [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:
@@ -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");
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.nhn.pinpoint.collector.util;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public interface FixedPoolFactory<T> {
|
||||
public interface ObjectPoolFactory<T> {
|
||||
T create();
|
||||
|
||||
void beforeReturn(T t);
|
||||
Reference in New Issue
Block a user