Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ru.rsdn.patterns.behavioral.observer.problems.leak
Class MemoryLeakNotTrivialFinalizeSubscriberTest

    java.lang.Object
      ru.rsdn.patterns.behavioral.observer.AbstractPublisher<java.util.concurrent.CopyOnWriteArrayList<ISubscriber>>
          ru.rsdn.patterns.behavioral.observer.problems.leak.MemoryLeakNotTrivialFinalizeSubscriberTest

    public class MemoryLeakNotTrivialFinalizeSubscriberTest

extends AbstractPublisher<java.util.concurrent.CopyOnWriteArrayList<ISubscriber>>

Тестирование работы издателя с подписчиками, которые используют финализатор для снятия регистрации, что приводит к утечке памяти

Field Summary
`private static int` | `N`

Fields inherited from class ru.rsdn.patterns.behavioral.observer.AbstractPublisher
`subscribers`

Constructor Summary
`MemoryLeakNotTrivialFinalizeSubscriberTest()`

Method Summary
`void` | `memoryLeakTest()`

Methods inherited from class ru.rsdn.patterns.behavioral.observer.AbstractPublisher
`getSubscribers, subscribe, unsubscribe`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### N

    private static final int N

  See Also:
    Constant Field Values

Constructor Detail

### MemoryLeakNotTrivialFinalizeSubscriberTest

    public MemoryLeakNotTrivialFinalizeSubscriberTest()

Method Detail

### memoryLeakTest

    public void memoryLeakTest()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD