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

## org.apache.logging.log4j.core.appender.rolling
Class CompositeTriggeringPolicy

    java.lang.Object
      org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy

All Implemented Interfaces:
  TriggeringPolicy

    @Plugin(name="Policies",
            category="Core",
            printObject=true)
    public final class CompositeTriggeringPolicy

extends Object
implements TriggeringPolicy

Triggering policy that wraps other policies.

Method Summary
`static CompositeTriggeringPolicy` | `createPolicy(TriggeringPolicy... policies)` Create a CompositeTriggeringPolicy.
`void` | `initialize(RollingFileManager manager)` Initializes the policy.
`boolean` | `isTriggeringEvent(LogEvent event)` Determines if a rollover should occur.
`String` | `toString()`

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

Method Detail

### initialize

    public void initialize(RollingFileManager manager)

  Initializes the policy.

  Specified by:
    `initialize` in interface `TriggeringPolicy`
  Parameters:
    `manager` - The RollingFileManager.

### isTriggeringEvent

    public boolean isTriggeringEvent(LogEvent event)

  Determines if a rollover should occur.

  Specified by:
    `isTriggeringEvent` in interface `TriggeringPolicy`
  Parameters:
    `event` - A reference to the currently event.
  Returns:
    true if a rollover should occur, false otherwise.

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### createPolicy

    @PluginFactory
    public static CompositeTriggeringPolicy createPolicy(@PluginElement(value="Policies")
                                                                       TriggeringPolicy... policies)

  Create a CompositeTriggeringPolicy.

  Parameters:
    `policies` - The triggering policies.
  Returns:
    A CompositeTriggeringPolicy.

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

Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.